package com.my.blogs.personblog.Service;

import com.my.blogs.personblog.enity.User;

import java.util.List;

public interface UserService {
    public User login(String username, String password);
    public User register(String username, String password, String email, String phone,String IdCard);
    public List<User> selectAllUsers();
    public User selectUserById(int id);
    public User selectUserByUsername(String username);
    public User selectUserByEmail(String email);
    public User selectUserByPhone(String phone);
    public Boolean insertUser(User user);
    public Boolean updateUser(User user);
    public Boolean deleteUser(int id);
    public List<User> sortById(int id);
    public List<User> selectPage(int page, int pageSize);
}
